package star.cloud.asme.system.role.menu;

import org.apache.ibatis.annotations.Mapper;
import star.cloud.asme.base.mybatis.IBaseMapper;

import java.util.List;

@Mapper
public interface MenuMapper extends IBaseMapper<Menu> {

    List<Menu> selectListByRoleId(Long roleId);

    List<String> selectMenuTitleListByUserId(Long userId);

    Integer deleteByRoleId(Long roleId);

    Integer deleteByRoleIdAndMenuTitle(Long roleId, String menuTitle);

}